import Mock from "mockjs";
import { myMock } from "./mock";

myMock("userList", "get", () => {
  return {
    code: 0,
    msg: "hello service",
    data: Mock.mock({
      "list|1-10": [
        {
          // 属性 id 是一个自增数，起始值为 1，每次增 1
          "id|+1": 1,
        },
      ],
    }),
    // "data": [ ],
  };
});
